/* Tab List Hover Styles */
#ajax-tab .tab-list {
    max-height: 48px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#ajax-tab .tab-list:hover {
    max-height: 500px;
    overflow-y: auto;
}

#ajax-tab .tab-list::after {
    content: "↓ 展开更多";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: linear-gradient(transparent, #fff);
    padding: 4px;
    font-size: 12px;
    color: #666;
}

#ajax-tab .tab-list:hover::after {
    display: none;
}

/* 滚动条样式 */
#ajax-tab .tab-list::-webkit-scrollbar {
    width: 6px;
}

#ajax-tab .tab-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#ajax-tab .tab-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#ajax-tab .tab-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Login EMT Styles */
#login-tab {
    padding: 20px;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-group input {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #4a90e2;
}

.login-button {
    width: 100%;
    padding: 10px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.login-button:hover {
    background-color: #357abd;
}

.login-button:active {
    background-color: #2d6da3;
}

/* 生成的链接样式 */
.generated-url {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.url-text {
    word-break: break-all;
    margin-bottom: 15px;
    font-family: monospace;
    font-size: 13px;
    color: #333;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-group {
    display: flex;
    gap: 10px;
}

.copy-url-button,
.open-url-button {
    flex: 1;
    padding: 8px;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-url-button {
    background-color: #6c757d;
}

.copy-url-button:hover {
    background-color: #5a6268;
}

.copy-url-button:active {
    background-color: #545b62;
}

.open-url-button {
    background-color: #28a745;
}

.open-url-button:hover {
    background-color: #218838;
}

.open-url-button:active {
    background-color: #1e7e34;
}

/* 截图控制样式 */
.screenshot-control {
    display: none;
    padding: 20px;
}

.screenshot-control.active {
    display: block;
}

.control-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.switch-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-label {
    font-size: 16px;
    color: #333;
}

/* 开关按钮样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 立即截图按钮样式 */
.screenshot-now-button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.screenshot-now-button:hover {
    background-color: #218838;
}

.screenshot-now-button:active {
    background-color: #1e7e34;
}

/* 消息提示样式 */
.screenshot-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.screenshot-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.screenshot-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
} 